package net.mysoft.budgetsoft.system.domain.comparator;

import java.util.Comparator;

import net.mysoft.budgetsoft.system.domain.TGongNeng;

/**
 * 功能排序
 * 
 * @author dagong
 * 
 */
public class GongNengComparator implements Comparator<TGongNeng> {

	@Override
	public int compare(TGongNeng o1, TGongNeng o2) {
		int i1 = o1.getShunXuBH() != null ? o1.getShunXuBH().intValue() : -1;
		int i2 = o2.getShunXuBH() != null ? o2.getShunXuBH().intValue() : -1;
		return i1 - i2;
	}

}
